package
{
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	
	public class TestEventCallee extends Sprite
	{
		private var sprit:Sprite;
		public function TestEventCallee()
		{
			super();
			init();
		}
		public function init():void {
			sprit = new Sprite();
			sprit.graphics.beginFill(0,.5);
			sprit.graphics.drawRoundRect(0,0,30,10,10,10);
			sprit.graphics.endFill();
			
			sprit.x = 100;
			sprit.y = 100;
			
			this.addChild(sprit);
			
			sprit.addEventListener(MouseEvent.MOUSE_OVER,onMouseOver);
		}
		var index:int = 0;
		public function onMouseOver(event:MouseEvent):void
		{
			trace(event.type+"...............");
			index++;
			if(index<100)
			arguments.callee(event);
		}
	}
}